import axios from "./axios.js";

export const login = (data) => {
    return axios({
        url: '/message_login',
        method: 'post',
        data
    })
}

export const sendcode = (data) => {
    return axios({
        url: '/sendcode',
        method: 'post',
        data
    })
}

export const editgender = (data) => {
    return axios({
        url: '/edit_gender',
        method: 'post',
        data
    })
}

export const editbirth = (data) => {
    return axios({
        url: '/edit_birth',
        method: 'post',
        data
    })
}

export const editcity = (data) => {
    return axios({
        url: '/edit_city',
        method: 'post',
        data
    })
}

export const userimageedit = (data) => {
    return axios({
        url: '/userimage_edit',
        method: 'post',
        data
    })
}

export const userpasswordedit = (data) => {
    return axios({
        url: '/password_edit',
        method: 'post',
        data
    })
}

export const usernicknameedit = (data) => {
    return axios({
        url: '/edit_nickname',
        method: 'post',
        data
    })
}
export const usereditdescribe = (data) => {
    return axios({
        url: '/edit_describe',
        method: 'post',
        data
    })
}
export const userlogout = (data) => {
    return axios({
        url: '/user_log_out',
        method: 'post',
        data
    })
}

export const getallstoreinfobylocation = (data) => {
    return axios({
        url: '/get_allstore_info_bylocation',
        method: 'post',
        data
    })
}

export const getallstoreinfobycity = (data) => {
    return axios({
        url: '/get_allstore_info_bycity',
        method: 'post',
        data
    })
}

export const passwordlogin = (data) => {
    return axios({
        url: '/password_login',
        method: 'post',
        data
    })
}


export const getstoreinfobycity = (data) => {
    return axios({
        url: '/get_storeinfo_bycity',
        method: 'post',
        data
    })
}

export const zhujiaoapply = (data) => {
    return axios({
        url: '/zhujiao_apply',
        method: 'post',
        data
    })
}

export const gettableinfo = (data) => {
    return axios({
        url: '/get_table_info',
        method: 'post',
        data
    })
}

export const tablereservation = (data) => {
    return axios({
        url: '/table_reservation',
        method: 'post',
        data
    })
}

export const editfulltimeimg = (data) => {
    return axios({
        url: '/edit_fulltimeimg',
        method: 'post',
        data
    })
}

export const editfulltimeage = (data) => {
    return axios({
        url: '/edit_fulltimeage',
        method: 'post',
        data
    })
}

export const editfulltimephone = (data) => {
    return axios({
        url: '/edit_fulltimephone',
        method: 'post',
        data
    })
}

export const editfulltimewechat = (data) => {
    return axios({
        url: '/edit_fulltimewechat',
        method: 'post',
        data
    })
}

export const editfulltimenickname = (data) => {
    return axios({
        url: '/edit_fulltimenickname',
        method: 'post',
        data
    })
}

export const editfulltimename = (data) => {
    return axios({
        url: '/edit_fulltimename',
        method: 'post',
        data
    })
}

export const jiamengapply = (data) => {
    return axios({
        url: '/jiameng_apply',
        method: 'post',
        data
    })
}

export const checktorder = (data) => {
    return axios({
        url: '/check_t_order',
        method: 'post',
        data
    })
}

export const checkzorder = (data) => {
    return axios({
        url: '/check_z_orders',
        method: 'post',
        data
    })
}

export const getzhujiaoinfo = (data) => {
    return axios({
        url: '/getzhujiao_info',
        method: 'post',
        data
    })
}

export const getuserplayingorder = (data) => {
    return axios({
        url: '/getuser_playingorder',
        method: 'post',
        data
    })
}

export const zhujiaoreservation = (data) => {
    return axios({
        url: '/zhujiao_reservation',
        method: 'post',
        data
    })
}

export const setfavstore = (data) => {
    return axios({
        url: '/fav_store',
        method: 'post',
        data
    })
}

export const getfavstore = (data) => {
    return axios({
        url: '/get_fav_store',
        method: 'post',
        data
    })
}

export const getfavzhujiao = (data) => {
    return axios({
        url: '/get_fav_zhujiao',
        method: 'post',
        data
    })
}

export const setfavzhujiao = (data) => {
    return axios({
        url: '/fav_zhujiao',
        method: 'post',
        data
    })
}

export const opentablereservation = (data) => {
    return axios({
        url: '/opentable_reservation',
        method: 'post',
        data
    })
}

export const timbill = (data) => {
    return axios({
        url: '/tim_bill',
        method: 'post',
        data
    })
}

export const endreservation = (data) => {
    return axios({
        url: '/end_reservation',
        method: 'post',
        data
    })
}

export const zhifupaymoney = (data) => {
    return axios({
        url: '/zhifu_paymoney',
        method: 'post',
        data
    })
}

export const privacyinfo = (data) => {
    return axios({
        url: '/privacyinfo',
        method: 'post',
        data
    })
}

export const addfeedback = (data) => {
    return axios({
        url: '/add_feedback',
        method: 'post',
        data
    })
}

export const getindexstore = (data) => {
    return axios({
        url: '/get_index_store',
        method: 'post',
        data
    })
}

export const opentabledirect = (data) => {
    return axios({
        url: '/opentable_direct',
        method: 'post',
        data
    })
}

export const cancelreservation = (data) => {
    return axios({
        url: '/cancel_reservation',
        method: 'post',
        data
    })
}

export const getstoreinfo = (data) => {
    return axios({
        url: '/get_store_info',
        method: 'post',
        data
    })
}

export const getshopgoods = (data) => {
    return axios({
        url: '/get_shop',
        method: 'post',
        data
    })
}

export const updatechart = (data) => {
    return axios({
        url: '/update_chart',
        method: 'post',
        data
    })
}

export const viewchart = (data) => {
    return axios({
        url: '/view_chart',
        method: 'post',
        data
    })
}

export default {
    login,
    sendcode,
    editgender,
    editbirth,
    editcity,
    userpasswordedit,
    usernicknameedit,
    usereditdescribe,
    userlogout,
    getallstoreinfobylocation,
    getallstoreinfobycity,
    passwordlogin,
    getstoreinfobycity,
    zhujiaoapply,
    gettableinfo,
    tablereservation,
    editfulltimeimg,
    editfulltimeage,
    editfulltimephone,
    editfulltimewechat,
    editfulltimenickname,
    editfulltimename,
    jiamengapply,
    checktorder,
    checkzorder,
    getzhujiaoinfo,
    getuserplayingorder,
    zhujiaoreservation,
    setfavstore,
    getfavstore,
    getfavzhujiao,
    setfavzhujiao,
    opentablereservation,
    timbill,
    endreservation,
    zhifupaymoney,
    privacyinfo,
    addfeedback,
    getindexstore,
    opentabledirect,
    cancelreservation,
    getstoreinfo,
    getshopgoods,
    updatechart,
    viewchart,
}